3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next
QuickDraw 3D provides routines that you can use to convert two-dimensional points from Cartesian form ( x , y ) to polar form ( r , ), and vice versa. QuickDraw 3D also provides routines that you can use to convert three-dimensional points from Cartesian form ( x , y , z ) to spherical form (, , ), and vice versa.
You can use the Q3Point2D_ToPolar function to convert a two-dimensional point from Cartesian form to polar form.
TQ3PolarPoint *Q3Point2D_ToPolar (
const TQ3Point2D *point2D,
TQ3PolarPoint *result);
You can use the Q3PolarPoint_ToPoint2D function to convert a polar point to Cartesian form.
TQ3Point2D *Q3PolarPoint_ToPoint2D (
const TQ3PolarPoint *polarPoint,
TQ3Point2D *result);
You can use the Q3Point3D_ToSpherical function to convert a three-dimensional point from Cartesian form to spherical form.
TQ3SphericalPoint *Q3Point3D_ToSpherical (
const TQ3Point3D *point3D,
TQ3SphericalPoint *result);
You can use the Q3SphericalPoint_ToPoint3D function to convert a spherical point to Cartesian form.
TQ3Point3D *Q3SphericalPoint_ToPoint3D (
const TQ3SphericalPoint *sphericalPoint,
TQ3Point3D *result);
Previous | QD3D Book | Overview | Chapter Contents | Next